package com.music.authority.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.music.authority.dao.UpMusicDao;
import com.music.authority.service.UpMusicService;
import com.music.domain.CateMusic;
import com.music.domain.Music;

/**
 * 上传音乐实现类
 * @author LFSenior
 *
 */
@Service
public class UpMusicServiceImpl implements UpMusicService{
	@Autowired
	UpMusicDao upMusicDao;

	@Override
	public void insertMusic(Map param) {
		upMusicDao.insertMusic(param);
	}

	@Override
	public void deleteMusic(String musicId) {
		upMusicDao.deleteMusic(musicId);
	}

	@Override
	public List<CateMusic> findAllCate() {
		return upMusicDao.findAllCate();
	}

	@Override
	public List<Music> findAllMusic() {
		return upMusicDao.findAllMusic();
	}

}
